:root {
  /* Light theme variables */
  --background: #ffffff;
  --foreground: #333333;
  --primary: #611bf8;
  --primary-rgb: 97, 27, 248;
  --primary-foreground: #ffffff;
  --secondary: #f3f4f6;
  --secondary-foreground: #1f2937;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --accent: #f3f4f6;
  --accent-foreground: #1f2937;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --card: #ffffff;
  --card-foreground: #333333;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --radius: 0.5rem;

  --gray-50: #f7f7f7;
  --gray-100: #eeeeee;
  --gray-200: #e0e0e0;
  --gray-300: #cacaca;
  --gray-400: #b1b1b1;
  --gray-500: #999999;
  --gray-600: #7f7f7f;
  --gray-700: #676767;
  --gray-800: #545454;
  --gray-900: #464646;
  --gray-950: #282828;

  --blockquote-bg: #f5f5f5;
  --nav-btn-bg: transparent;
  --nav-btn-color: #282828;
  --nav-btn-border: var(--gray-300);
  --toast-bg: rgba(0, 0, 0, 0.7);
  --toast-text: white;
  --nav-bg: #ffffff;
  --nav-text: #282828;
  --nav-border: var(--gray-300);
  --nav-hover: var(--gray-100);
  --nav-active: var(--primary-100);
  --footer-bg: #f5f5f5;
  --footer-text: #282828;
  --comment-bg: #f9f9f9;
  --modal-overlay: rgba(0, 0, 0, 0.5);
  --hover-bg: var(--gray-100);
  --modal-bg: var(--bg-color);
  --btn-hover: var(--gray-200);
}

/* Sayfa yüklenirken beyaz flash önleme */
html:not(.light-theme) {
  background-color: #121212;
  color: #e0e0e0;
}

/* Tema geçişleri için transition */
html {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Theme Colors */
html:not(.light-theme) {
  --background: #121212;
  --foreground: #e0e0e0;
  --primary: #8b5cf6;
  --primary-foreground: #ffffff;
  --secondary: #2d2d2d;
  --secondary-foreground: #e5e5e5;
  --muted: #2d2d2d;
  --muted-foreground: #a1a1aa;
  --accent: #2d2d2d;
  --accent-foreground: #e5e5e5;
  --border: #3f3f46;
  --input: #3f3f46;
  --card: #1e1e1e;
  --card-foreground: #e5e5e5;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.4);

  --blockquote-bg: #1e1e1e;
  --nav-btn-bg: #1e1e1e;
  --nav-btn-color: #e0e0e0;
  --nav-btn-border: #444;
  --toast-bg: rgba(255, 255, 255, 0.85);
  --toast-text: #121212;
  --nav-bg: #1e1e1e;
  --nav-text: #e0e0e0;
  --nav-border: #444;
  --nav-hover: #2a2a2a;
  --nav-active: rgba(97, 27, 248, 0.2);
  --footer-bg: #1e1e1e;
  --footer-text: #e0e0e0;
  --comment-bg: #1e1e1e;
  --modal-overlay: rgba(0, 0, 0, 0.7);
  --hover-bg: #2a2a2a;
  --modal-bg: #1e1e1e;
  --btn-hover: #333333;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--foreground);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-foreground);
}

ul {
  list-style: none;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--muted);
}

/* Novel Container */
.novel-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  transition: max-width 0.3s ease;
}

/* Novel Header */
.novel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.novel-header.hidden {
  opacity: 0.2;
  transform: translateY(-10px);
}

.novel-title-container {
  flex: 1;
  min-width: 200px;
}

.novel-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: "Inter", sans-serif;
  line-height: 1.2;
}

.novel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.meta-item .material-icons {
  font-size: 1rem;
}

/* Çevirmen bilgisi için özel stil */
.meta-item.translator {
  font-weight: 500;
  color: var(--primary);
}

.novel-actions {
  display: flex;
  gap: 0.5rem;
  position: relative;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s;
  color: var(--foreground);
  position: relative;
}

.action-btn:hover {
  background-color: var(--hover-bg);
}

.action-btn .material-icons {
  font-size: 1.25rem;
}

.tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--toast-bg);
  color: var(--toast-text);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 10;
}

.action-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Reading Settings Panel */
.reading-settings {
  background-color: var(--card);
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.settings-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.close-settings-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--foreground);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.close-settings-btn:hover {
  background-color: var(--hover-bg);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.settings-group {
  margin-bottom: 0.5rem;
}

.settings-group.full-width {
  grid-column: 1 / -1;
}

.settings-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.font-selector {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  outline: none;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
}

.font-selector:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(97, 27, 248, 0.2);
}

.size-control {
  display: flex;
  align-items: center;
}

.size-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--nav-btn-bg);
  border: 1px solid var(--nav-btn-border);
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  color: var(--nav-btn-color);
}

.size-btn:first-child {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.size-btn:last-child {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.size-btn:hover {
  background-color: var(--btn-hover);
}

.size-display {
  flex: 1;
  padding: 0.25rem;
  text-align: center;
  border-top: 1px solid var(--nav-btn-border);
  border-bottom: 1px solid var(--nav-btn-border);
  background-color: var(--nav-btn-bg);
  color: var(--nav-btn-color);
  font-size: 0.875rem;
}

.theme-options {
  display: flex;
  gap: 0.5rem;
}

.theme-option-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--nav-btn-bg);
  border: 1px solid var(--nav-btn-border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--nav-btn-color);
  flex: 1;
  transition: all 0.2s ease;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.theme-option-btn:hover {
  background-color: var(--btn-hover);
}

.theme-option-btn.active {
  background-color: var(--primary-100);
  color: var(--primary);
  border-color: var(--primary-300);
}

html:not(.light-theme) .theme-option-btn.active {
  background-color: rgba(97, 27, 248, 0.2);
}

body.dark-theme .theme-option-btn.active {
  background-color: rgba(97, 27, 248, 0.2);
}

.width-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--gray-300);
  outline: none;
  border-radius: 4px;
  margin: 0.5rem 0;
}

.width-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

.width-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

.width-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.settings-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.save-settings-btn,
.reset-settings-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 0.8rem;
  white-space: nowrap;
  min-width: fit-content;
  flex: 1;
  justify-content: center;
  max-width: 150px;
}

.save-settings-btn {
  background-color: var(--primary);
  color: white;
  border: none;
}

.save-settings-btn:hover {
  opacity: 0.9;
}

.reset-settings-btn {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.reset-settings-btn:hover {
  background-color: var(--hover-bg);
}

/* Novel Content */
.novel-content {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.8;
}

.content-text {
  white-space: pre-line;
  word-wrap: break-word;
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--foreground);
}

.novel-content p {
  margin-bottom: 1.5rem;
}

.novel-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  background-color: var(--blockquote-bg);
  border-radius: 0.25rem;
}

/* Bölüm Notu Stili (Birleştirilmiş) */
.novel-content .chapter-note {
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, rgba(97, 27, 248, 0.05) 0%, rgba(97, 27, 248, 0.1) 100%);
  border-radius: 0.5rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(97, 27, 248, 0.1);
}

.novel-content .chapter-note::before {
  content: "📝 Bölüm Notu";
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.novel-content .chapter-note p {
  margin: 0;
  line-height: 1.7;
  color: var(--foreground);
  font-style: normal;
  white-space: pre-line;
}

/* Yazar Notu Stili */
.novel-content .author-note {
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, rgba(97, 27, 248, 0.05) 0%, rgba(97, 27, 248, 0.1) 100%);
  border-radius: 0.5rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(97, 27, 248, 0.1);
}

.novel-content .author-note::before {
  content: "✍️ Yazar Notu";
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.novel-content .author-note p {
  margin: 0;
  line-height: 1.7;
  color: var(--foreground);
  font-style: normal;
  white-space: pre-line;
}

/* Dark tema için özel renkler */
html:not(.light-theme) .novel-content .chapter-note,
html:not(.light-theme) .novel-content .author-note {
  background: linear-gradient(135deg, rgba(97, 27, 248, 0.1) 0%, rgba(97, 27, 248, 0.15) 100%);
  box-shadow: 0 2px 8px rgba(97, 27, 248, 0.2);
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
  .novel-content .chapter-note,
  .novel-content .author-note {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
  }

  .novel-content .chapter-note::before,
  .novel-content .author-note::before {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
}

.chapter-ending {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary);
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  gap: 1rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  gap: 0.5rem;
}

/* aktif değilse grileştir */
.nav-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #ccc;
  pointer-events: none;
}

.prev-btn,
.chapters-btn {
  border: 1px solid var(--border);
  background-color: var(--nav-btn-bg);
  color: var(--nav-btn-color);
}

.prev-btn:hover,
.chapters-btn:hover {
  background-color: var(--hover-bg);
}

.next-btn {
  background-color: var(--primary);
  color: white;
  border: none;
}

.next-btn:hover {
  opacity: 0.9;
}

.next-btn .material-icons {
  color: white;
}

/* Comments Section */
.comments-section {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  transition: opacity 0.3s ease;
}

.comments-section.hidden {
  opacity: 0.5;
}

.comments-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Disqus Comments Styling */
#disqus_thread {
  margin-top: 1rem;
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px var(--shadow);
}

/* Disqus iframe responsive styling */
#disqus_thread iframe {
  max-width: 100% !important;
  border-radius: var(--radius);
}

/* Dark theme support for Disqus */
html:not(.light-theme) #disqus_thread {
  background-color: var(--card);
  border-color: var(--border);
}

/* Disqus loading state */
#disqus_thread:empty::before {
  content: "Yorumlar yükleniyor...";
  display: block;
  text-align: center;
  padding: 2rem;
  color: var(--muted-foreground);
  font-style: italic;
}

/* Disqus error state */
#disqus_thread:empty::after {
  content: "Yorumlar yüklenemedi. Lütfen sayfayı yenileyin.";
  display: none;
  text-align: center;
  padding: 1rem;
  color: #ef4444;
  font-size: 0.875rem;
}

/* Mobile optimization for Disqus */
@media (max-width: 767px) {
  #disqus_thread {
    margin-top: 1rem;
    padding: 1rem;
  }

  #disqus_thread iframe {
    min-height: 400px;
  }
}

/* Disqus theme integration */
html:not(.light-theme) #disqus_thread {
  --disqus-bg: var(--card);
  --disqus-text: var(--foreground);
  --disqus-border: var(--border);
}

/* Ensure Disqus respects our theme */
#disqus_thread * {
  font-family: "Inter", sans-serif !important;
}


/* Chapter Modal */
.chapter-modal {
  display: none; /* Varsayılan olarak gizli */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chapter-modal.show {
  opacity: 1;
  visibility: visible;
  display: flex !important; /* Görünür olduğunda flex olarak göster */
}

.chapter-modal-content {
  background-color: var(--card);
  border-radius: 0.75rem;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  overflow: hidden;
}

.chapter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.chapter-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.close-modal-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--foreground);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.close-modal-btn:hover {
  background-color: var(--hover-bg);
}

.chapter-modal-body {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
}

.chapter-search {
  margin-bottom: 1rem;
}

.search-input-container {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  background-color: var(--background);
}

.search-input-container .material-icons {
  color: var(--muted-foreground);
  margin-right: 0.5rem;
}

.chapter-search-input {
  flex: 1;
  border: none;
  outline: none;
  background-color: transparent;
  color: var(--foreground);
  font-size: 0.875rem;
}

.chapters-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.chapter-item {
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chapter-item:hover {
  background-color: var(--hover-bg);
}

.chapter-item.active {
  background-color: var(--secondary);
  color: var(--primary);
  font-weight: 500;
}

html:not(.light-theme) .chapter-item.active {
  background-color: rgba(97, 27, 248, 0.2);
}

.chapter-icon {
  color: var(--primary);
}

.chapter-info {
  flex: 1;
}

.chapter-title {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.chapter-date {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--toast-bg);
  color: var(--toast-text);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.toast-icon {
  font-size: 1rem;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  opacity: 0.9;
}

/* Report Error Modal */
.report-error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.report-error-modal.open {
  opacity: 1;
  visibility: visible;
}

.report-error-content {
  background-color: var(--card);
  border-radius: 0.75rem;
  width: 90%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
}

.report-error-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.report-error-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.close-report-error-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--foreground);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.close-report-error-btn:hover {
  background-color: var(--hover-bg);
}

.report-error-body {
  padding: 1.5rem;
}

.report-error-body p {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.error-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--background);
  color: var(--foreground);
  resize: vertical;
  font-family: inherit;
  margin-bottom: 1rem;
}

.error-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.submit-error-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.3s;
  margin-left: auto;
}

.submit-error-btn:hover {
  opacity: 0.9;
}

/* Helper Classes */
.hidden {
  display: none !important;
}

/* Share Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-overlay);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--card);
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px var(--shadow);
  animation: modalFadeIn 0.3s ease;
  border: 1px solid var(--border);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--card-foreground);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--card-foreground);
}

.modal-body {
  padding: 1.25rem;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: none;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-size: 0.875rem;
}

.share-btn:hover {
  opacity: 0.9;
}

.share-btn.facebook {
  background-color: #1877f2;
}

.share-btn.twitter {
  background-color: #1da1f2;
}

.share-btn.whatsapp {
  background-color: #25d366;
}

.share-btn.telegram {
  background-color: #0088cc;
}

.share-link {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-link input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.share-link input:focus {
  outline: none;
  border-color: var(--primary);
}

.copy-link {
  white-space: nowrap;
  padding: 0.75rem 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
  .novel-header {
    flex-direction: column;
  }

  .novel-actions {
    align-self: flex-start;
  }

  .navigation-buttons {
    flex-wrap: wrap;
  }

  .prev-btn,
  .next-btn {
    flex: 1;
    min-width: 120px;
  }

  .next-btn {
    white-space: nowrap;
  }

  .chapters-btn {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .save-settings-btn,
  .reset-settings-btn {
    width: 100%;
    justify-content: center;
    max-width: none;
    padding: 0.7rem 0.5rem;
  }


}

/* Daha küçük ekranlar için ek düzenlemeler */
@media (max-width: 480px) {
  .settings-footer {
    gap: 0.4rem;
  }

  .save-settings-btn,
  .reset-settings-btn {
    padding: 0.6rem 0.4rem;
    font-size: 0.75rem;
    gap: 0.3rem;
  }

  .reading-settings {
    padding: 0.8rem;
  }

  .settings-grid {
    gap: 0.8rem;
  }

  .novel-container,
  .novel-content,
  .content-text {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Çok küçük ekranlar için ek düzenlemeler */
@media (max-width: 360px) {
  .save-settings-btn,
  .reset-settings-btn {
    padding: 0.5rem 0.3rem;
    font-size: 0.7rem;
    gap: 0.2rem;
  }

  .save-settings-btn .material-icons,
  .reset-settings-btn .material-icons {
    font-size: 1rem;
  }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
